package com.ruoyi.dynamic.model.pojo.request.app;


import com.ruoyi.common.core.annotation.valid.group.ValidGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Getter
@Setter
@Schema(description = "APP-发布福袋参数")
public class AppCreateLuckBagRequest {
    @Schema(description = "福袋id")
    private Long id=0L;

    @Schema(description = "福袋名称")
    @NotBlank(message = "福袋名称不能为空", groups = {ValidGroup.Insert.class})
    @Length(max = 30, message = "福袋名称最大30字符", groups = {ValidGroup.Insert.class})
    private String name;

    @Schema(description = "福袋金额")
    @DecimalMin(value = "1", message = "福袋金额最低1", groups = {ValidGroup.Insert.class})
    @NotNull(message = "福袋金额不能为空", groups = {ValidGroup.Insert.class})
    private BigDecimal luckyBagMoney;

    @Schema(description = "中奖人数")
    @DecimalMin(value = "1", message = "中奖人数最低1", groups = {ValidGroup.Insert.class})
    @NotNull(message = "中奖人数不能为空", groups = {ValidGroup.Insert.class})
    private Integer winnerNum;

    @Schema(description = "参与对象0所有1粉丝")
    @NotNull(message = "参与对象不能为空", groups = {ValidGroup.Insert.class})
    private Integer isPart;

    @Schema(description = "参与方式0弹幕1分享直播间2提问3点歌4拍拍")
    @NotNull(message = "参与对象不能为空", groups = {ValidGroup.Insert.class})
    private Integer partWay;

    @Schema(description = "弹幕内容")
    private String danmuContent;

    @Schema(description = "倒计时分钟")
    @NotNull(message = "时间不能为空", groups = {ValidGroup.Insert.class})
    private Integer countDownTime;

    @Schema(description = "房间id")
    @NotNull(message = "房间不能为空", groups = {ValidGroup.Insert.class})
    private Long roomId;

    @Schema(description = "是否存模板 1存0不存")
    private Integer isTemplate = 0;
}
